package study.week03.gateway_final.router;

import java.util.Arrays;
import java.util.List;
import java.util.Random;

public class RandomCustomRouter implements CustomRouter {

    @Override
    public String route(List<String> urls) {
        int size = urls.size();
        return urls.get((int) (Math.random() * size));
    }

}
